home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 38 / Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso / -in_the_mag- / reader_requests / dice_v3.15 / lib / unix / sleep.c < prev    next >
C/C++ Source or Header  |  1999-01-26  |  389b  |  27 lines

  1.  
  2. /*
  3.  *  SLEEP.C
  4.  *
  5.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  6.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  7.  *    DICE-LICENSE.TXT.
  8.  */
  9.  
  10. #include <exec/types.h>
  11. #include <libraries/dos.h>
  12. #include <clib/dos_protos.h>
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15.  
  16. void
  17. sleep(n)
  18. int n;
  19. {
  20.     while (n) {
  21.     Delay(50);
  22.     chkabort();
  23.     --n;
  24.     }
  25. }
  26.  
  27.